package stub;

import businessLogic.CourseModifyBLService;
import po.CoursePO;

public class CourseModifyBLService_Stub implements CourseModifyBLService{
	String courseNum=null;
	String courseName=null;
	
	

	public void publishCourse(String num,String name,String time,String tea,int credit,String ctlg) {
		CoursePO po=new CoursePO(num,name,ctlg,time,tea,credit);
		String record=po.toString();
		//add record to the CoureList.txt
		System.out.println("published successfully");
	}


	public void fillCourseInfo(CoursePO po) {
		if(po.getCourseNum()=="0001")
			po.setDetails("abc");
		else
			System.out.println("the course doesn't exist");
	}


	public void modifyCourse(CoursePO po) {		
		if(po.getCourseNum()=="0001"){
			po.setTime("abc");
			po.setCredit(2);
		}else
			System.out.println("the course doesn't exist");
	}



}
